// src/api/order.ts
import request from '@/utils/request';
import type { OrderListResponse, GetOrderListParams } from './types/order';

enum OrderAPI {
  GET_ORDER_LIST = '/meal/weborder',
}

export const getOrderList = (params: GetOrderListParams) => {
  return request.get<OrderListResponse, OrderListResponse>(OrderAPI.GET_ORDER_LIST, { params });
};